﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Db4objects.Db4o;
using Configurations;

namespace DataAccessLayer
{
    public class DbConnector
    {
        public static IObjectContainer OpenDB()
        {
            if (Configs.FileDirectory == "")
                return Db4oEmbedded.OpenFile(Configs.FileName);
            return Db4oEmbedded.OpenFile(Configs.FileDirectory + @"\" + Configs.FileName);
        }
    }
}
